package com.thread.generant_consumer;

/**
 * @Author milian
 * @Date 2021/7/29 0029 16:35
 */
public class desk {
    private boolean flag;
    private int count;
    private final Object lock = new Object();

    public desk() {
        this(false,10);
    }

    public desk(boolean flag, int count) {
        this.flag = flag;
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getLock() {
        return lock;
    }

    @Override
    public String toString() {
        return "desk{" +
                "flag=" + flag +
                ", count=" + count +
                ", lock=" + lock +
                '}';
    }
}
